import request from '@/config/axios'

// 首页上部数据
export const getTopIndex = () => {
  return request.get({ url: '/home/top-index' })
}

// 根据层级获取图表配置选项
export const getSectionOptions = (params: any) => {
  return request.get({ url: '/home/section-options', params })
}

// 获取系统接入情况统计
export const getAccessStatistics = () => {
  return request.get({ url: '/home/access-statistics' })
}

// 获取目录指标数据
export const getCatalogIndex = (data: any) => {
  return request.post({ url: '/home/catalog-index', data })
}

// 获取目录指标详情数据（分页）
export const getCatalogIndexDetails = () => {
  return request.get({ url: '/home/catalog-index-details' })
}

// 获取表数据排名
export const getTableRanking = (data: any) => {
  return request.post({ url: '/home/table-ranking', data })
}

// 获取汇聚任务分布统计
export const getMergeTaskDistribution = () => {
  return request.get({ url: '/home/task-distribution' })
}

// 获取7天数据量统计
export const getSevenDayDataVolume = () => {
  return request.get({ url: '/home/data-num-7day' })
}

// 获取数据源列表
export const getDataSourceList = () => {
  return request.get({ url: '/home/data-sources' })
}
